// 消息框封裝
// 成功
const success = (title, icon = "success", duration = 1000) => {
	uni.showToast({
		title,
		icon,
		mask: true,
		duration,
	});
};
// 失败
const err = (title, icon = "none") => {
	uni.showToast({
		title,
		icon,
	});
};
// 提醒
const warn = (title, icon = "none") => {
	uni.showToast({
		title,
		icon,
	});
};

export default {
	success,
	err,
	warn,
};